<?php
$file_url_array = array(ADMIN_DIR,INDEX_FLAG,'eous5_3','teacher','tnews','pubnews');

$url_array = explode('/',$_SERVER['REQUEST_URI']);

if(!empty($url_array)){
	foreach($url_array as $k=>$v){
		if(stripos($v,'.')>0||$v===""){
			continue;
		}else{
			if(in_array($v,$file_url_array)){
				continue;
			}else{
				ob_get_clean();			
				header('Location:'.SITE_URL);
				exit;
			}
		}
	}	
}